import { createRouter, createWebHistory } from 'vue-router'


const routerHistory = createWebHistory()
const router = createRouter({
    history: routerHistory,
    routes: [{
            path: '/',
            name: 'home',
            component: ()=>import('../view/HomeView.vue'),
        },
        {
            path: '/login',
            name: 'Login',
            component: () => import('../view/login.vue')
        },
        {
            path: '/smslogin',
            name: 'smslogin',
            component: () => import('../view/smslogin.vue')
        },
        {
            path: '/setpassword',
            name: 'setpassword',
            component: () => import('../view/setpassword.vue')
        },
        {
            path: '/course',
            name: 'course',
            component: () => import('../view/course.vue')
          },
          {
            path: '/record',
            name: 'record',
            component: () => import('../view/record.vue')
          },
          {
            path: '/practice',
            name: 'practice',
            component: () => import('../view/practice.vue')
          },
          {
            path: '/my',
            name: 'my',
            component: () => import('../view/my.vue')
          },
    ]
})
export default router